package com.wn.ticket.mapper;

import com.wn.ticket.entity.Comment;
import com.wn.ticket.entity.Order;

import java.util.List;

/**
 * @author wuqingting
 * @date 2022/8/28
 */
public interface CommentMapper {
    /**
     * 增加
     *
     * @param comment
     */
    void add(Comment comment);

    /**
     * 修改点赞
     *
     * @param comment
     */
    void update(Comment comment);

    /**
     * 条件查询
     *
     * @param comment
     * @return
     */
    List<Comment> getByCondition(Comment comment);

    /**
     * 按id查询
     *
     * @param commentId
     * @return
     */
    Comment getCommentById(int commentId);

}
